Skip to content

Add System.Text.Json converter for EventGridEvent#22295

Merged
JoshLove-msft merged 5 commits intoAzure:mainfrom
JoshLove-msft:eg-converter
Jun 29, 2021
Merged

Add System.Text.Json converter for EventGridEvent#22295
JoshLove-msft merged 5 commits intoAzure:mainfrom
JoshLove-msft:eg-converter

Conversation

@JoshLove-msft
Copy link
Copy Markdown
Member

Fixes #21639

/// A custom converter that attributes the <see cref="EventGridEvent"/> type.
/// This allows System.Text.Json to serialize and deserialize EventGridEvent by default.
/// </summary>
internal class EventGridEventConverter : JsonConverter<EventGridEvent>
Copy link
Copy Markdown
Member Author

@JoshLove-msft JoshLove-msft Jun 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is covered by existing tests after switching the Parse and Publish methods to use this.

@JoshLove-msft
Copy link
Copy Markdown
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft
Copy link
Copy Markdown
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft
Copy link
Copy Markdown
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Comment thread sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridEvent.cs Outdated
@JoshLove-msft
Copy link
Copy Markdown
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft JoshLove-msft enabled auto-merge (squash) June 29, 2021 21:22
@JoshLove-msft JoshLove-msft merged commit f15ec78 into Azure:main Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add custom converter for EventGridEvent

3 participants